* lisp/json.el: Add pretty-print option.
authorRyan Crum <ryan.crum@eleostech.com>
Fri, 14 Dec 2012 14:57:37 +0000 (09:57 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Fri, 14 Dec 2012 14:57:37 +0000 (09:57 -0500)
commit557e347d84b342e65899fb80f72296ac82d22bf5
treec32964a7d401a3272d150a4459459f7d02473468
parentd4a5d1a11bd916b3dac170f5b60ca45cd80594ee
* lisp/json.el: Add pretty-print option.
(json-encoding-separator, json-encoding-default-indentation)
(json--encoding-current-indentation, json-encoding-pretty-print)
(json-encoding-lisp-style-closings): New vars.
(json--with-indentation): New macro.
(json-encode-hash-table, json-encode-alist, json-encode-plist)
(json-encode-array): Use it to obey json-encoding-pretty-print.
(json-pretty-print-buffer, json-pretty-print): New commands.
lisp/ChangeLog
lisp/json.el